package com.wt.easyadmin.common.utils;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;

public class HttpUtil {

	private static final String Charset = "utf-8";
	public static String  get(String url) {
		String result = "";
		OkHttpClient client = new OkHttpClient();
		Request request = new Request.Builder().url(url).build();
		Call call = client.newCall(request);
		try {
			Response response = call.execute();
			result= response.body().string();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return result;
	}
}
